<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="设置Cookie方法.js"></script>
</head>
<body>
    <form action="../2.2denglu.php" method="GET">
        <p>
            <label for="">用户：</label>
            <input type="text" name="username">
        </p>
        <p>
            <label for="">密码：</label>
            <input type="text" name="pass">
        </p>
       <button>登录</button>
       <script>
            // setCookie('login','1',1);
       </script>
    </form>
</body>
</html>